Skip to content

Conversation

StuartMosquera
Copy link
Contributor

Summary

  • This PR improves the example for the AddRange method of the List<T> class by replacing dinosaur names with fruits to enhance readability, for both C# and VB.NET.

Fixes #11833

@StuartMosquera StuartMosquera requested a review from a team as a code owner October 7, 2025 15:40
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Oct 7, 2025
@StuartMosquera
Copy link
Contributor Author

Would it be better to remove the project file? It causes namespace conflicts. The same issue happens with #11781.

@eiriktsarpalis
Copy link
Member

Go for it @StuartMosquera

@gewarren
Copy link
Contributor

gewarren commented Oct 8, 2025

Sorry, that's the whole point of that Snippets 5000 status check. We should add back the project file and use different names to fix the build warnings.

@adegeo
Copy link
Contributor

adegeo commented Oct 8, 2025

Yeah, it's compiling the folder via that project file. Simply change the names of the classes (or make them partial) and get the code compiling. This way we make sure we ship accurate code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Collections community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Who is the paleontologist writing those examples?
4 participants